package com.findFish.water.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.findFish.water.mapper.EnvironmentAlertsMapper;
import com.findFish.water.domain.EnvironmentAlerts;
import com.findFish.water.service.IEnvironmentAlertsService;

/**
 * 环境异常报警Service业务层处理
 * 
 * @author admin
 * @date 2025-04-01
 */
@Service
public class EnvironmentAlertsServiceImpl implements IEnvironmentAlertsService 
{
    @Autowired
    private EnvironmentAlertsMapper environmentAlertsMapper;

    /**
     * 查询环境异常报警
     * 
     * @param id 环境异常报警主键
     * @return 环境异常报警
     */
    @Override
    public EnvironmentAlerts selectEnvironmentAlertsById(Long id)
    {
        return environmentAlertsMapper.selectEnvironmentAlertsById(id);
    }

    /**
     * 查询环境异常报警列表
     * 
     * @param environmentAlerts 环境异常报警
     * @return 环境异常报警
     */
    @Override
    public List<EnvironmentAlerts> selectEnvironmentAlertsList(EnvironmentAlerts environmentAlerts)
    {
        return environmentAlertsMapper.selectEnvironmentAlertsList(environmentAlerts);
    }

    /**
     * 新增环境异常报警
     * 
     * @param environmentAlerts 环境异常报警
     * @return 结果
     */
    @Override
    public int insertEnvironmentAlerts(EnvironmentAlerts environmentAlerts)
    {
        return environmentAlertsMapper.insertEnvironmentAlerts(environmentAlerts);
    }

    /**
     * 修改环境异常报警
     * 
     * @param environmentAlerts 环境异常报警
     * @return 结果
     */
    @Override
    public int updateEnvironmentAlerts(EnvironmentAlerts environmentAlerts)
    {
        return environmentAlertsMapper.updateEnvironmentAlerts(environmentAlerts);
    }

    /**
     * 批量删除环境异常报警
     * 
     * @param ids 需要删除的环境异常报警主键
     * @return 结果
     */
    @Override
    public int deleteEnvironmentAlertsByIds(Long[] ids)
    {
        return environmentAlertsMapper.deleteEnvironmentAlertsByIds(ids);
    }

    /**
     * 删除环境异常报警信息
     * 
     * @param id 环境异常报警主键
     * @return 结果
     */
    @Override
    public int deleteEnvironmentAlertsById(Long id)
    {
        return environmentAlertsMapper.deleteEnvironmentAlertsById(id);
    }
}
